'''
复制图片
1）读源文件

2）写到新文件中
'''
# 读
with open(r"d:\cat.jpeg","rb") as f:
    img_binary = f.read()

with open(r"d:\cat1.jpeg","wb") as f1:
    f1.write(img_binary)